﻿// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Website: https://www.blazor.zone or https://argozhang.github.io/

using Microsoft.AspNetCore.Components;
using SupperTreeSample.Shared.Data;

namespace SupperTreeSample.Shared.Components;

public partial class FoodDay
{
    [Parameter]
    [NotNull]
    public List<FoodDayNode>? Items { get; set; }

    private ElementReference FoodDayElement { get; set; }

    private int IndexOf(FoodDayNode item) => Items.IndexOf(item);

    /// <summary>
    /// 
    /// </summary>
    /// <returns></returns>
    protected override ElementReference GetElement() => FoodDayElement;
}
